\hypertarget{classDataLogger}{}\doxysection{Data\+Logger Class Reference}
\label{classDataLogger}\index{DataLogger@{DataLogger}}


This class is a helper class to record the data.  




{\ttfamily \#include $<$data\+\_\+logger.\+h$>$}

\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{classDataLogger_af284c7479597c605071d0a98cbe28f11}{Data\+Logger}} (std\+::string file\+Name\+In)
\begin{DoxyCompactList}\small\item\em Construct a new Data Logger object. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{classDataLogger_ac106150d369e0d8583a527ee9b9d2ea8}{add\+Iterm}} (const std\+::string \&name, const int \&len)
\begin{DoxyCompactList}\small\item\em add a record iterm, used to setup record content \end{DoxyCompactList}\item 
void \mbox{\hyperlink{classDataLogger_ad2c6107c9bf68f77c3ac6ff38f08b8dc}{finish\+Iterm\+Adding}} ()
\begin{DoxyCompactList}\small\item\em finish setup \end{DoxyCompactList}\item 
void \mbox{\hyperlink{classDataLogger_a2770688034db114a11b89c2ff8bdb855}{start\+New\+Line}} ()
\begin{DoxyCompactList}\small\item\em start a new data-\/record line \end{DoxyCompactList}\item 
void \mbox{\hyperlink{classDataLogger_a67e5c12897b4094b1e9eaa5f1d5b4b1f}{rec\+Iterm\+Data}} (const std\+::string \&name, double $\ast$data\+In)
\begin{DoxyCompactList}\small\item\em record data in double array \end{DoxyCompactList}\item 
void \mbox{\hyperlink{classDataLogger_a6c6980a2ba84f352c8d64d0ee49358d4}{rec\+Iterm\+Data}} (const std\+::string \&name, double data\+In)
\begin{DoxyCompactList}\small\item\em record data in double \end{DoxyCompactList}\item 
void \mbox{\hyperlink{classDataLogger_a356d2d9a5bea8acca229c451c32cad03}{rec\+Iterm\+Data}} (const std\+::string \&name, const Eigen\+::\+Vector\+Xd \&data\+In)
\begin{DoxyCompactList}\small\item\em record data in Eigen\+::\+Vector\+Xd type \end{DoxyCompactList}\item 
void \mbox{\hyperlink{classDataLogger_a700069837e9d2aa78aa4787ba6bd9500}{rec\+Iterm\+Data}} (const std\+::string \&name, const std\+::vector$<$ double $>$ \&data\+In)
\begin{DoxyCompactList}\small\item\em record data in std\+::vector type \end{DoxyCompactList}\item 
void \mbox{\hyperlink{classDataLogger_a2148c451c86c97c5ff08584512e01056}{finish\+Line}} ()
\begin{DoxyCompactList}\small\item\em finish a data-\/record line \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
This class is a helper class to record the data. 

Data log class based on Quill (\href{https://github.com/odygrd/quill}{\texttt{ https\+://github.\+com/odygrd/quill}}). It will generate a Data\+Logger.\+log file and a matlab\+Read\+Data\+Script.\+txt. In this txt, it gives the info about correlated column indexes of each recorded variable. It is recommended to use Matlab to read the log file, and use the content of the txt file to extract the recorded variable. 

Definition at line 27 of file data\+\_\+logger.\+h.



\doxysubsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{classDataLogger_af284c7479597c605071d0a98cbe28f11}\label{classDataLogger_af284c7479597c605071d0a98cbe28f11}} 
\index{DataLogger@{DataLogger}!DataLogger@{DataLogger}}
\index{DataLogger@{DataLogger}!DataLogger@{DataLogger}}
\doxysubsubsection{\texorpdfstring{DataLogger()}{DataLogger()}}
{\footnotesize\ttfamily Data\+Logger\+::\+Data\+Logger (\begin{DoxyParamCaption}\item[{std\+::string}]{file\+Name\+In }\end{DoxyParamCaption})}



Construct a new Data Logger object. 


\begin{DoxyParams}{Parameters}
{\em file\+Name\+In} & the file to record data \\
\hline
\end{DoxyParams}


Definition at line 10 of file data\+\_\+logger.\+cpp.



\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{classDataLogger_ac106150d369e0d8583a527ee9b9d2ea8}\label{classDataLogger_ac106150d369e0d8583a527ee9b9d2ea8}} 
\index{DataLogger@{DataLogger}!addIterm@{addIterm}}
\index{addIterm@{addIterm}!DataLogger@{DataLogger}}
\doxysubsubsection{\texorpdfstring{addIterm()}{addIterm()}}
{\footnotesize\ttfamily void Data\+Logger\+::add\+Iterm (\begin{DoxyParamCaption}\item[{const std\+::string \&}]{name,  }\item[{const int \&}]{len }\end{DoxyParamCaption})}



add a record iterm, used to setup record content 


\begin{DoxyParams}{Parameters}
{\em name} & iterm name \\
\hline
{\em len} & iterm length (how many ints?) \\
\hline
\end{DoxyParams}


Definition at line 22 of file data\+\_\+logger.\+cpp.

\mbox{\Hypertarget{classDataLogger_ad2c6107c9bf68f77c3ac6ff38f08b8dc}\label{classDataLogger_ad2c6107c9bf68f77c3ac6ff38f08b8dc}} 
\index{DataLogger@{DataLogger}!finishItermAdding@{finishItermAdding}}
\index{finishItermAdding@{finishItermAdding}!DataLogger@{DataLogger}}
\doxysubsubsection{\texorpdfstring{finishItermAdding()}{finishItermAdding()}}
{\footnotesize\ttfamily void Data\+Logger\+::finish\+Iterm\+Adding (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



finish setup 



Definition at line 35 of file data\+\_\+logger.\+cpp.

\mbox{\Hypertarget{classDataLogger_a2148c451c86c97c5ff08584512e01056}\label{classDataLogger_a2148c451c86c97c5ff08584512e01056}} 
\index{DataLogger@{DataLogger}!finishLine@{finishLine}}
\index{finishLine@{finishLine}!DataLogger@{DataLogger}}
\doxysubsubsection{\texorpdfstring{finishLine()}{finishLine()}}
{\footnotesize\ttfamily void Data\+Logger\+::finish\+Line (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



finish a data-\/record line 



Definition at line 114 of file data\+\_\+logger.\+cpp.

\mbox{\Hypertarget{classDataLogger_a356d2d9a5bea8acca229c451c32cad03}\label{classDataLogger_a356d2d9a5bea8acca229c451c32cad03}} 
\index{DataLogger@{DataLogger}!recItermData@{recItermData}}
\index{recItermData@{recItermData}!DataLogger@{DataLogger}}
\doxysubsubsection{\texorpdfstring{recItermData()}{recItermData()}\hspace{0.1cm}{\footnotesize\ttfamily [1/4]}}
{\footnotesize\ttfamily void Data\+Logger\+::rec\+Iterm\+Data (\begin{DoxyParamCaption}\item[{const std\+::string \&}]{name,  }\item[{const Eigen\+::\+Vector\+Xd \&}]{data\+In }\end{DoxyParamCaption})}



record data in Eigen\+::\+Vector\+Xd type 


\begin{DoxyParams}{Parameters}
{\em name} & data iterm name \\
\hline
{\em data\+In} & data \\
\hline
\end{DoxyParams}


Definition at line 86 of file data\+\_\+logger.\+cpp.

\mbox{\Hypertarget{classDataLogger_a700069837e9d2aa78aa4787ba6bd9500}\label{classDataLogger_a700069837e9d2aa78aa4787ba6bd9500}} 
\index{DataLogger@{DataLogger}!recItermData@{recItermData}}
\index{recItermData@{recItermData}!DataLogger@{DataLogger}}
\doxysubsubsection{\texorpdfstring{recItermData()}{recItermData()}\hspace{0.1cm}{\footnotesize\ttfamily [2/4]}}
{\footnotesize\ttfamily void Data\+Logger\+::rec\+Iterm\+Data (\begin{DoxyParamCaption}\item[{const std\+::string \&}]{name,  }\item[{const std\+::vector$<$ double $>$ \&}]{data\+In }\end{DoxyParamCaption})}



record data in std\+::vector type 


\begin{DoxyParams}{Parameters}
{\em name} & data iterm name \\
\hline
{\em data\+In} & data \\
\hline
\end{DoxyParams}


Definition at line 100 of file data\+\_\+logger.\+cpp.

\mbox{\Hypertarget{classDataLogger_a67e5c12897b4094b1e9eaa5f1d5b4b1f}\label{classDataLogger_a67e5c12897b4094b1e9eaa5f1d5b4b1f}} 
\index{DataLogger@{DataLogger}!recItermData@{recItermData}}
\index{recItermData@{recItermData}!DataLogger@{DataLogger}}
\doxysubsubsection{\texorpdfstring{recItermData()}{recItermData()}\hspace{0.1cm}{\footnotesize\ttfamily [3/4]}}
{\footnotesize\ttfamily void Data\+Logger\+::rec\+Iterm\+Data (\begin{DoxyParamCaption}\item[{const std\+::string \&}]{name,  }\item[{double $\ast$}]{data\+In }\end{DoxyParamCaption})}



record data in double array 


\begin{DoxyParams}{Parameters}
{\em name} & data iterm name \\
\hline
{\em data\+In} & data \\
\hline
\end{DoxyParams}


Definition at line 58 of file data\+\_\+logger.\+cpp.

\mbox{\Hypertarget{classDataLogger_a6c6980a2ba84f352c8d64d0ee49358d4}\label{classDataLogger_a6c6980a2ba84f352c8d64d0ee49358d4}} 
\index{DataLogger@{DataLogger}!recItermData@{recItermData}}
\index{recItermData@{recItermData}!DataLogger@{DataLogger}}
\doxysubsubsection{\texorpdfstring{recItermData()}{recItermData()}\hspace{0.1cm}{\footnotesize\ttfamily [4/4]}}
{\footnotesize\ttfamily void Data\+Logger\+::rec\+Iterm\+Data (\begin{DoxyParamCaption}\item[{const std\+::string \&}]{name,  }\item[{double}]{data\+In }\end{DoxyParamCaption})}



record data in double 


\begin{DoxyParams}{Parameters}
{\em name} & data iterm name \\
\hline
{\em data\+In} & data \\
\hline
\end{DoxyParams}


Definition at line 72 of file data\+\_\+logger.\+cpp.

\mbox{\Hypertarget{classDataLogger_a2770688034db114a11b89c2ff8bdb855}\label{classDataLogger_a2770688034db114a11b89c2ff8bdb855}} 
\index{DataLogger@{DataLogger}!startNewLine@{startNewLine}}
\index{startNewLine@{startNewLine}!DataLogger@{DataLogger}}
\doxysubsubsection{\texorpdfstring{startNewLine()}{startNewLine()}}
{\footnotesize\ttfamily void Data\+Logger\+::start\+New\+Line (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



start a new data-\/record line 



Definition at line 53 of file data\+\_\+logger.\+cpp.



The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
data\+\_\+logger.\+h\item 
data\+\_\+logger.\+cpp\end{DoxyCompactItemize}
